$(function () {
    var option = {
        type: 'get',
        url: 'admin/user.php',
        data: {
            getType: 'getLoginUser'
        }
    };
    requestEvent(option, function (res) {
        if (res.status == 1) {
            $('#loginUserName').text(res.msg);
        } else {
            alert(res.msg);
            window.location.href = 'login.html';
        }
    })
});